﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using Logic;

namespace MusicConsole
{
    class Program
    {
        public static void Main()
        {
            Division division = DivisionFactory.CreateDivision();
            int totalDuration = DivisionCalculator.CalculateDuration(division);
            DivisionPrinter.Print(division, totalDuration);
        }
    }
}











/*Metal metal1 = new Metal();
           metal1.Name = "Enter Sandman";
           metal1.Duration = 6 * 60 + 14;
           metal1.BandName = "Metallica";
           metal1.Year = 1981;
           metal1.NumberOfGuitarists = 3;

           Metal metal2 = new Metal();
           metal2.Name = "Turn the Page";
           metal2.Duration = 5 * 60 + 17;
           metal2.BandName = "Metallica";
           metal2.Year = 1981;
           metal2.NumberOfGuitarists = 3;

           Alternative alt1 = new Alternative();
           alt1.Name = "Lithium";
           alt1.Duration = 4 * 60 + 17;
           alt1.BandName = "Nirvana";
           alt1.Year = 1987;
           alt1.VocalistName = "Kurt Cobain";

           Alternative alt2 = new Alternative();
           alt2.Name = "Come As You Are";
           alt2.Duration = 3 * 60 + 38;
           alt2.BandName = "Nirvana";
           alt2.Year = 1987;
           alt2.VocalistName = "Kurt Cobain";

           Rap rap = new Rap();
           rap.Name = "Lose Yourself";
           rap.Duration = 5 * 60 + 20;
           rap.SingerName = "Eminem";
           rap.Language = "English";

           Division division = new Division();
           division.AddMusic(metal1);
           division.AddMusic(metal2);
           division.AddMusic(alt1);
           division.AddMusic(alt2);
           division.AddMusic(rap);*/

/*List<AbstractMusic> music = division.Music;

foreach (AbstractMusic track in music)
{
    Console.WriteLine("Название трека: " + track.Name);
    Console.WriteLine("Продолжительность: " + track.Duration / 60 + ':' + track.Duration % 60 + "\n");
}

Console.WriteLine("Общая продолжительность всех треков: " + DivisionCalculator.CalculateDuration() / 60 + ':' + DivisionCalculator.CalculateDuration(division) % 60);
Console.ReadKey();
*/